package constant

var weixinConfigMap = map[string]struct {
	Corpid         string `json:"corpid"`
	Secret         string `json:"secret"`
	AgentId        int    `json:"agent_id"`
	Token          string `json:"token"`
	EncodingAeskey string `json:"encoding_aeskey"`
}{
	"test": {
		Corpid:         "ww0f75d7c4903c16b0",
		Secret:         "xHxfz5WitNc6c-OC_9f4EkyOTcl35XfnkDOhYrlS9dk",
		AgentId:        1000055,
		Token:          "cVP1WymraJ",
		EncodingAeskey: "2iSq3Fxp7r54k3Kc9LAKBBzZKJ0HkzxuGeBEvrumEEE",
	},
	"prod": {
		Corpid:         "ww0f75d7c4903c16b0",
		Secret:         "R2HcOfG0azIn0_EG4zlo_8Kg8HlP1l7ZHoUTSCwS97w",
		AgentId:        1000056,
		Token:          "ienEQ8xFazv2qGiaL6z38SirAH46Ve",
		EncodingAeskey: "rDwzIy0tXekfpBtcE5ODORtY7hIEkeQ39JOIhPfmV8Q",
	},
}

func GetCorpId(env string) string {
	return weixinConfigMap[env].Corpid
}

func GetSecret(env string) string {
	return weixinConfigMap[env].Secret
}

func GetAgentId(env string) int {
	return weixinConfigMap[env].AgentId
}

func GetToken(env string) string {
	return weixinConfigMap[env].Token
}

func GetEncodingAeskey(env string) string {
	return weixinConfigMap[env].EncodingAeskey
}
